﻿using Md.Api.Model.Manage.MdAddress.Request;
using Md.Dapper.Repositories.Md;

namespace Md.Api.Service.Manage.MdAddress;
/// <summary>
/// 通过编号删除收货/发货地址服务
/// </summary>
public class DeleteMdAddressByIdService : ApiBase<RequestDeleteMdAddressByIdModel>
{
    /// <summary>
    /// 收货/发货地址仓储
    /// </summary>
    public MdAddressRep mdAddressRep { get; set; }
    /// <summary>
    /// 执行
    /// </summary>
    protected override void ExecuteMethod()
    {
        var res = mdAddressRep.DeleteMdAddressById(Parameter.Ids);

        Result.Data = res;
    }
}
